<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title><?php echo $title;?></title>
</head>
    <?php $bar=$testtitle."のランキングの結果";
        echo '<table border=0 align=center width=700px>';
        echo '<tr><td colspan=2 align=center class=bar>'.$bar.'</td></tr>';

        echo '
            <th>回答者</th>
              <th>点数</th> 
              
        ';
        foreach($query->result() as $row){
            echo "<tr>
                        <td align=center>$row->id_te</td>
                        <td align=center>$row->sum_mark</td></tr>";
            }
        echo '</table>';?>
</html>
